CRPEngine::PrintReport

This method provides a quick but limited way to print a report. The report may only be output to a printer or preview window. Use this class method any time you simply want to print a report from an application without giving the user the ability to customize the report.

Syntax
PrintReport (reportFilePath CHAR (*), toPrinter BOOLEAN : TRUE, toWindow 
BOOLEAN : FALSE, title CHAR (*) : "Crystal Report", left SMALLINT : 0,top 
SMALLINT : 0, width SMALLINT : 0, height SMALLINT : 0, style INTEGER : 0, 
parentWindow ixWindow : NULL) RETURNING SMALLINT
Parameters

reportFilePath

Specifies the name and path of the report to be printed.

toPrinter

Specifies whether or not the report is to be sent to the default printer.

toWindow

Specifies whether or not the report is to be displayed in a preview window.

title

Specifies the title you want to appear in the title bar if the report is being sent to a preview window.

left

Specifies the x coordinate of the upper left hand corner of the preview window, in device coordinates.

top

Specifies the y coordinate of the upper left hand corner of the preview window, in device coordinates.

width

Specifies the width of the preview window, in device coordinates.

height

Specifies the height of the preview window, in device coordinates.

style

Specifies the style of the window being created. Style setting can be combined using the bitwise "OR" operator. Refer to the CWnd class in the Microsoft Foundation Class Library reference for possible window styles.

parentWindow

Specifies a pointer to the CWnd object for the window that is the parent of the preview window. Specify NULL if the preview window will not have a parent window.

Returns
Related Topics

PEPrintReport



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com